package com.ym.manager.admin.merchant;

import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class MerchantServer {

    @Autowired
    private MerchantDao merchantDao;

    /**
     * 保存店家信息
     * @param id 店家id
     * @param expressMap 店家信息map
     * @return
     */
    public int saveExpressInfo(int id,Map<String, Object> expressMap) {
        String expressJson = JSON.toJSONString(expressMap);
        return merchantDao.saveExpressInfo(id,expressJson);
    }
}
